public class ConversionConfig {
    private int quality = 100; // 转换质量（1-100）
    private boolean preserveMetadata = true; // 是否保留元数据
    private Map<String, String> customParams = new HashMap<>(); // 自定义参数
    
    // Builder模式
    public static class Builder {
        private final ConversionConfig config = new ConversionConfig();
        
        public Builder quality(int quality) {
            config.quality = quality;
            return this;
        }
        
        public Builder preserveMetadata(boolean preserve) {
            config.preserveMetadata = preserve;
            return this;
        }
        
        public Builder addCustomParam(String key, String value) {
            config.customParams.put(key, value);
            return this;
        }
        
        public ConversionConfig build() {
            return config;
        }
    }
} 